package com.ziyan.dto;

import org.apache.commons.lang3.StringUtils;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created by ZMy on 2017/5/24.
 */
public class RequestDTO extends AppInfoDTO implements Serializable {
    public static final int ACTION_TO_SHORT = 1;
    public static final int ACTION_TO_LONG = 2;
    Integer action;
    String url;

    public Integer getAction() {
        return action;
    }

    public void setAction(Integer action) {
        this.action = action;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public boolean isBlank() {
        return super.isBlank()
                || action == null
                || StringUtils.isBlank(url);
    }
}
